package com.dingding.service.core.common.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dingding.common.core.beans.ChannelRefUser;
import com.dingding.service.core.common.dao.IChannelRefUserDao;
import com.dingding.service.core.common.service.IChannelRefUserService;

@Service("channelRefUserService")
public class ChannelRefUserServiceImpl implements IChannelRefUserService{

	@Resource(name = "channelRefUserDao")
	IChannelRefUserDao channelRefUserDao;
	
	/**
	 * 
	 * @Title: saveDriverRefChannel 
	 * @Description: 保存司机关联来源渠道
	 * @param  参数说明 
	 * @author hufan
	 * @return 返回类型 
	 * @throws
	 */
	@Override
	public boolean saveChannelRefUser(ChannelRefUser channelRefUser) {
		return channelRefUserDao.saveChannelRefUser(channelRefUser);
	}

	/**
	 * 
	 * @Title: queryChannelRefUserByUserId 
	 * @Description: 根据用户id查询该用户的来源渠道
	 * @param  参数说明 
	 * @author hufan
	 * @return 返回类型 
	 * @throws
	 */
	@Override
	public ChannelRefUser queryChannelRefUserByUserId(String userId) {
		return channelRefUserDao.queryChannelRefUserByUserId(userId);
	}

	
}
